/* ------------------------------------------------------------------------*
 * com_ext.c
 * ------------------------------------------------------------------------*/
#include "com_def.h"
#define _COM_OBJ_MODULE_
#include "com_obj.h"
#include "os_obj.h"

/*******************************************************************************
* @brief  com_ext_wait
* \param[in] ms : milisecond
* \retval: none
*******************************************************************************/
void com_ext_wait(uint16_t ms)
{
    if(ms_ticks(ms) < 1)
    {
        osDelay(1);
    }
    else
    {
        osDelay(ms_ticks(ms));
    }
}


/*******************************************************************************
* @brief  os_event_send
* \param[in] enent : event to send
* \retval: none
*******************************************************************************/
void com00_os_event_send(uint16_t event)
{
    //rt_event_send(os_obj.eid_com, event);
}

void com01_os_event_send(uint16_t event)
{
    //rt_event_send(os_obj.eid_com, event);
}

void com02_os_event_send(uint16_t event)
{
    //rt_event_send(os_obj.eid_com, event);
}

